<?php 

require ('../include/web.init.inc.php');
extract ( $_POST);
header("Content-type: application/json");
$current_user_info = UserSession::getSessionInfo();
//0-发布竞标，1-支付预付，2-采纳律师，3-支付余额，4-办理完成，5-评论完成，6-结束
$input_data = array ('user_id'=>$current_user_info["user"]["id"],
	'location'=>$location,
	'content' => $content,
	'start_price'=>$start_price,
	'end_price'=>$end_price,
	'pre_price'=>$pre_price,
	'type'=>$type,
	'real_name'=>$real_name,
	'user_phone'=>$user_phone,
	'user_num'=>$user_num,  
	'compete_num'=>time());
$module_id = Compete::add ( $input_data );

// if($user_info){
$ret = json_encode(array("code"=>1,"data"=>$module_id.""));
// }else{
// 	$ret = json_encode(array("code"=>0,"msg"=>"用户名密码错误"));
// }

echo $ret;
